# -*- coding: utf-8 -*-
from django.conf.urls.defaults import patterns, include, url

from cprt.admin import views
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Examples:
#    url(r'^$',views.list_dept),
    url(r'^dept/(?P<id>\d+)$',views.view_dept),
    url(r'^user/(?P<id>\d+)$',views.view_user),
    url(r'^dept/create$',views.create_dept),
    url(r'^user/create$',views.register),
    #url(r'^shdlType/create$',views.create_schedule_type),
    #url(r'^todolist/edit/(?P<user_id>\d+)$',views.edit_todolist),
    url(r'^user/create/(?P<dept_id>\d+)$',views.register_dept_user),
    url(r'^holiday/list$',views.list_holiday),
    url(r'^workday/list$',views.list_workday),
    url(r'^holiday/create$',views.create_holiday),
    url(r'^workday/create$',views.create_workday),
     url(r'^holiday/delete/(?P<id>\d+)$',views.delete_holiday),
    url(r'^workday/delete/(?P<id>\d+)$',views.delete_workday),
    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
